package com.sdw.message.service;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.sdw.message.dao.MessageDao;
import com.sdw.message.dao.ReplyDao;
import com.sdw.message.dao.StudentDao;
import com.sdw.message.dao.UserDao;

@Service("testService")
public class TestService {
	
	@Resource
	private StudentDao studentDao;
	@Resource
	private UserDao userDao;
	@Resource
	private ReplyDao replyDao;
	@Resource
	private MessageDao messageDao;
	
	public String obtainUserName(){
		
		this.studentDao.getAllStudent();
		this.userDao.getAllUser();
		this.replyDao.getAllReplyByMessageId(0);
		this.messageDao.getLastTopMessage(100);
		
		return "shidawen";
	}
}
